package com._520it.crm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com._520it.crm.domain.Coefficient;
import com._520it.crm.mapper.CoefficientMapper;
import com._520it.crm.service.ICoefficientService;

@Service
public class CoefficientServiceImpl implements ICoefficientService {
	@Autowired
	private CoefficientMapper mapper;

	@Override
	public int deleteByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return mapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Coefficient record) {
		// TODO Auto-generated method stub
		return mapper.insert(record);
	}

	@Override
	public Coefficient selectByPrimaryKey(Long id) {
		// TODO Auto-generated method stub
		return mapper.selectByPrimaryKey(id);
	}

	@Override
	public List<Coefficient> selectAll() {
		// TODO Auto-generated method stub
		return mapper.selectAll();
	}

	@Override
	public int updateByPrimaryKey(Coefficient record) {
		// TODO Auto-generated method stub
		return mapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Coefficient> selectPage(int current, int size, String exemptFloat, String roadAccident, String unlawfulAct, Integer drinkAct, Integer ebrietyAct) {
		return mapper.selectPage(current,size,exemptFloat, roadAccident, unlawfulAct,drinkAct,ebrietyAct);
	}

	@Override
	public int selectPageCount(String exemptFloat, String roadAccident, String unlawfulAct, Integer drinkAct, Integer ebrietyAct){
		return mapper.selectPageCount(exemptFloat, roadAccident, unlawfulAct,drinkAct,ebrietyAct);
	}

}
